import type { FileDetail,QuestionsAndAnswersType, TotalAnalysisType } from "@/types/interview"
import { sendRequest } from "@/utils/http"

export const expressionAnalysisResultAPI = (filedata:FileDetail[]) => {
  return sendRequest<string>({
    url: '/server-ai/interview/expressionAnalysisResult',
    method:"POST",
    data:filedata
  })
}

export const createVoiceAPI = (content:string[]) => {
  return sendRequest<string[]>({
    url: '/server-ai/interview/createVoice',
    method:"POST",
    data:content
  })
}

export const AnswersAnalysisResultAPI = (QuestionsAndAnswersType:QuestionsAndAnswersType) => {
  return sendRequest<string>({
    url: '/server-ai/interview/AnswersAnalysis',
    method:"POST",
    data:QuestionsAndAnswersType 
  })
}

export const TotalAnalysisAPI = (totalData:TotalAnalysisType) => {
  return sendRequest<string>({
    url: '/server-ai/interview/totalAnalysis',
    method:"POST",
    data:totalData
  })
}